﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;


namespace Core
{
    public class Connector
    {
        private TcpClient _connection;

        public Connector()
        {
            _connection = new TcpClient();
        }
        public TcpClient Connection
        {
            get
            {
                return _connection;
            }
            private set
            {
                _connection = value;
            }
        }

        public void Connect(string ip, int port)
        {
            _connection = new TcpClient(ip, port);
        }

        public void Disconnect()
        {
            _connection.Close();

        }

    }
}
